package com.ruoyi.framework.redis;

public final class CacheConstant {
    /**
     * token  用户token
     */
    public static final String USER_TOKEN_PREFIX = "user_token_";
    public static final Long USER_TOKEN_EXPIRE = 7 * 24 * 3600L;//一周

    /**
     * catpcha  验证码
     */
    public static final String CAPTCHA_KEY = "captcha_";
    public static final Long CAPTCHA_KEY_EXPIRE = 60*5L; //5分钟

    /**
     * sms 短信验证码
     */
    public static final String SMS_KEY="sms_";
    public static final String SMS_PHONE_KEY="sms_verify_";
    public static final Long SMS_KEY_EXPIRE=60*5L;//5分钟
    public static final Long SMS_KEY_EXPIRE_VERIFY=60L;//60秒
    /**
     * j2cache 长期缓存key 2级缓存
     */
    public static final String BUS_CACHE_NAME = "MallCache";
    public static final String SYS_CACHE_NAME = "SysCache";

    /**
     * 地区缓存key
     */
    public static final String REGION_CACHE_NAME = "Region";
}
